import request from "@/request/index.js";

export function getFollowList(params) {
  return request.get({
    url: "/app-api/health/user/doctor/follow/list",
    params: params || {},
    custom: {
      title: "获取关注医生列表",
      authentication: true,
    },
  });
}

// 医生信息
export function getDoctorInfo(params) {
  return request.get({
    url: "/app-api/health/doctor/info/get",
    params,
    custom: {
      title: "获取医生信息",
      authentication: true,
    },
  });
}

// 查询是否关注医生
export function getDoctorAttention(params) {
  return request.get({
    url: "app-api/health/user/doctor/follow/status",
    params: params || {},
    custom: {
      title: "查询是否关注医生",
      authentication: true,
    },
  });
}

// 添加关注
export function addDoctorAttention(data) {
  return request.post({
    url: "/app-api/health/user/doctor/follow/create",
    data,
    custom: {
      title: "添加用户关注信息",
      authentication: true,
    },
  });
}

// 删除用户关注信息
export function deleteDoctorAttention(params) {
  return request.delete({
    url: "/app-api/health/user/doctor/follow/delete",
    params: params || {},
    custom: {
      title: "删除用户关注信息",
      authentication: true,
    },
  });
}

// 扫码进入 获取场景值 获取医生信息
export function getSceneInfo(params) {
  return request.get({
    url: "/app-api/health/doctor/info/qrcode-param",
    params,
    custom: {
      title: "获取场景值",
      authentication: true,
    },
  });
}

// 保存病历信息
export function saveHealthRecord(data) {
  return request.post({
    url: "/app-api/health/patient/health-record/basic/create",
    data,
    custom: {
      title: "新增患者健康档案",
      authentication: true,
    },
  });
}
